package root.electronclass.electronclass.grade.member

import androidx.lifecycle.ViewModel
import androidx.lifecycle.liveData
import root.electronclass.electronclass.grade.repository.ClassRepository

/**
 *
 * @author Lokiy
 * @date 2023/2/25 21:18
 */
class ClassMemberViewModel : ViewModel() {

    val teacherList = liveData {
        emit(ClassRepository.getClassTeacher().toMutableList())
    }
    val studentList = liveData {
        emit(ClassRepository.getClassLeader().toMutableList())
    }
}